﻿<?xml version="1.0" encoding="utf-8" ?>
<Controls>
  <Control name="MetatypeEquivalences" AllowUserToAddRows="false" type="DataGrid" AutoGenerateColumns="false">
      <Columns>
        <TextColumn Visible="false" Name="TargetId" HeaderText="TargetId" DataPropertyName="TarId" ReadOnly="true" />
        <TextColumn Visible="false" Name="MetaTypeId" HeaderText="MetaTypeId" DataPropertyName="MetId" ReadOnly="true" />
        <TextColumn Visible="true" Name="MetaName" HeaderText="MetaName" DataPropertyName="MetatypeName" ReadOnly="true"/>
        <TextColumn Name="EquivalenceColumn" HeaderText="Test" DataPropertyName="MetEquType" />
        <BoolColumn Name="SpecifyLengthColumn" HeaderText="Specify Precision" DataPropertyName="MetEquSpecifyPrecision"/>
        <BoolColumn Name="SpecifyLengthColumn" HeaderText="Specify Length" DataPropertyName="MetEquSpecifyLength"/>
      </Columns>
  </Control>
  <Control name="Metatypes" type="DataGrid">
    <Columns>
      <TextColumn Visible="false"  Name="MetId" HeaderText="MetId" DataPropertyName="MetId"/>
      <TextColumn Name="MetCode" HeaderText="Code" DataPropertyName="MetCode"/>
      <TextColumn Name="MetDescription" HeaderText="Description" DataPropertyName="MetDescription"/>
    </Columns>
  </Control>
  <Control name="Targets" type="DataGrid">
    <Columns>
      <TextColumn Visible="false" Name="TarId" HeaderText="Identifiant" DataPropertyName="TarId" />
      <TextColumn Name="TarCode" HeaderText="Code" DataPropertyName="TarCode"/>
      <TextColumn Name="TarDescription" HeaderText="Description" DataPropertyName="TarDescription"/>
    </Columns>
  </Control>
  <Control name="ModuleList" View="LargeIcon" type="IrisGenerator.Common.Gui.Controls.Lists.ModuleList" CheckBoxes="false" >
    <Template >
      <ItemTemplate Name="TarId" GroupId="0" TextData="ModName" ForeColor="212;212;212">
        <SubItemTemplates collectionType="IrisGenerator.Common.Core.UI.ListTemplate.ListSubItemTemplate">
            <Add Name="TarCode" TextData="ModAssembly"/>
            <Add Name="TarDescription" TextData="Target.TarDescription"/>
        </SubItemTemplates>
          <Keys>
            <Key Key="ModId" Value="ModId"/>
          </Keys>
      </ItemTemplate>
      <AlternateItemTemplate>
        <Item Name="TarId" GroupName="Test2" TextData="ModName" ForeColor="255;0;0">
          <SubItems>
            <SubItem Name="TarCode" TextData="ModAssembly"/>
            <SubItem Name="TarDescription" TextData="Target.TarDescription"/>
          </SubItems>
          <Keys>
            <Key Key="ModId" Value="ModId"/>
          </Keys>
        </Item>
      </AlternateItemTemplate>
      <GroupTemplate NameData="Target.TarCode" HeaderData="Target.TarDescription" />
    </Template>
    <Groups>
      <Add Header="Test" />
      <Group NameData="#Target.TarCode" HeaderData="#Target.TarDescription" MethodName="" Type=""/>
    </Groups>
    <Columns>
      <Add Text="Module's Id" Tag="ModId"  />
      <Add Text="Module's Name" Tag="ModName" />
      <Add Text="Module's Assembly" />
    </Columns>
    <LargeImageList ImageSize="32;32" width="32" height="32">
      <Images>
        <Add Path="C:\Program Files\Team MediaPortal\MediaPortal\BallonRadio.ico" Index="0" >
          <Parameter Value="Path" Type="System.String" />
        </Add>
      </Images> 
    </LargeImageList>
  </Control>

  <Control name="ModuleSelectionList" CheckBoxes="true" View="Tile" type="List">
    <ListSourceMethod></ListSourceMethod>
    <GroupSourceMethod></GroupSourceMethod>
    <SmallImagesSourceMethod></SmallImagesSourceMethod>
    <LargeImagesSourceMethod></LargeImagesSourceMethod>
    <ColumnsSourceMethod></ColumnsSourceMethod>
    <ListItemTemplate >
      <ItemTemplate>
        <Item Name="TarId" GroupId="0" TextData="ModName" ForeColor="212;212;212">
          <SubItems>
            <SubItem Name="TarCode" TextData="ModAssembly"/>
            <SubItem Name="TarDescription" TextData="Target.TarDescription"/>
          </SubItems>
          <Keys>
            <Key Key="ModId" Value="ModId"/>
          </Keys>
        </Item>
      </ItemTemplate>
      <AlternateItemTemplate>
        <Item Name="TarId" GroupName="Test2" TextData="ModName" ForeColor="255;0;0">
          <SubItems>
            <SubItem Name="TarCode" TextData="ModAssembly"/>
            <SubItem Name="TarDescription" TextData="Target.TarDescription"/>
          </SubItems>
          <Keys>
            <Key Key="ModId" Value="ModId"/>
          </Keys>
        </Item>
      </AlternateItemTemplate>
    </ListItemTemplate>
    <Groups>
      <Group Name="Test" Header="Test" />
      <Group Name="Test2" Header="Test2" />
    </Groups>
    <Columns>
      <Column Text="Module's Id" Tag="ModId"  />
      <Column Text="Module's Name" Tag="ModName" />
      <Column Text="Module's Assembly" />
    </Columns>
    <LargeImageList width="32" height="32">
      <Images>
        <Add Path="C:\Program Files\Team MediaPortal\MediaPortal\BallonRadio.ico" Index="0" />
      </Images>
    </LargeImageList>
    <SmallImageList>
      
    </SmallImageList>
  </Control>
</Controls>
